import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'key_think_tank_detail_state.dart';

class KeyThinkTankDetailLogic extends GetxController with GetSingleTickerProviderStateMixin {
  final KeyThinkTankDetailState state = KeyThinkTankDetailState();

  // 如果需要和 TabBarView 联动， TabBar 和 TabBarView 使用同一个 TabController 即可
  late TabController controller;

  @override
  void onInit() {
    super.onInit();
    controller = TabController(vsync: this, length: state.tabs.length);
  }
  @override
  void onReady() {
    super.onReady();
    controller.addListener(() {

    });

  }

  @override
  void onClose() {
    super.onClose();
    controller.dispose();
  }
}
